﻿using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace NCT.Entity
{
    public class ListItem : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        ObservableCollection<Item> items = new ObservableCollection<Item>();

        public ObservableCollection<Item> Items
        {
            set
            {
                if (items != value)
                {
                    items = value;
                    OnPropertyChanged("Songs");

                }
            }
            get
            {
                return items;
            }
        }
        //List<Item> items = new List<Item>();

        //public List<Item> Items
        //{
        //    set
        //    {
        //        if (items != value)
        //        {
        //            items = value;
        //            OnPropertyChanged("Songs");

        //        }
        //    }
        //    get
        //    {
        //        return items;
        //    }
        //}
        protected virtual void OnPropertyChanged(string propChanged)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propChanged));
        }
    }
}